home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / memory / tmap110.zip / TMAP.DOC < prev   
Text File  |  1988-02-10  |  4KB  |  118 lines

  1. ----------------------------------------------------------------------------
  2.  
  3. TMAP v1.10, Memory Control Block Map (c)1987,88 by MagicSoft, Inc.
  4.  
  5. This SHAREWARE Program may be freely distributed.  If you
  6. feel that this is a useful program, send $15 to:
  7.  
  8.                 MagicSoft, Inc.
  9.                 125 E Prairie
  10.                 Lombard, IL  60148
  11.  
  12. Usage:  TMAP [/{nua}]
  13.  
  14. Where:  "n" specifies NON-resident mode.
  15.         "u" includes vector 80-FFh.
  16.         "a" excludes Address for Hooked Vectors.
  17.  
  18. The "U" and "A" options were added for compatability
  19. with TMAP versions before 1.10.
  20.  
  21.  
  22. ----------------------------------------------------------------------------
  23.                 Title Definitions
  24. ----------------------------------------------------------------------------
  25.  
  26. MCB        Memory Control Block.  This is a 16 byte header that DOS
  27.         adds when a memory request is made (DOS Function 48h).
  28.         The format of a MCB is as follows:
  29.  
  30.         Offset  Length    Meaning
  31.  
  32.           0    byte    4D = Normal MCB
  33.                 5A = Last MCB in chain
  34.                 (NOTE: 4D and 5A are ASCII M and Z,
  35.                 which are the 1st 2 chars in an EXE
  36.                 file.  MZ are the initials of one
  37.                 of the authors of DOS.)
  38.  
  39.           1    word    Pointer to owner of the MCB.  This is
  40.                 the program who requested the momory block.
  41.                 COMMAND.COM allocates all memory above
  42.                 the last TSR program installed and will
  43.                 free it when it EXECs a program (DOS
  44.                 function 4Bh).
  45.  
  46.           3    word    Paragraphs of memory in the block.
  47.  
  48.          4-15        reserved
  49.  
  50. ----------------------------------------------------------------------------
  51.  
  52. Addr        Address of allocated memory (always 16 bytes greater
  53.         than the MCB).
  54.  
  55. ----------------------------------------------------------------------------
  56.  
  57. Owner        Points to the memory address of the program that
  58.         allocated the memory.  If this field is blank, then
  59.         this is a program and not an allocated block of memory
  60.         and the Description field shows the name of the program
  61.         that is loaded.    
  62.  
  63. ----------------------------------------------------------------------------
  64.  
  65. Bytes        Amount of memory allocated to this MCB.  This is the
  66.         value at offset 3 in the MCB header converted to
  67.         bytes instead of paragraphs.
  68.  
  69. ----------------------------------------------------------------------------
  70.  
  71. Description
  72.  
  73.     This field holds a program name (either a TSR program or the
  74.     program that is currently executing) or one of the
  75.     following:
  76.  
  77.     Untitled
  78.  
  79.       This is a program that does not have it's name in it's
  80.       environment.  COMMAND.COM is one program that does not save
  81.       it's name and will appear as Untitled.
  82.  
  83.     ???, Missing Env
  84.  
  85.       This is a program that no longer owns the block of memory
  86.       containing it's environment (offset 2Ch in it's PSP).  In
  87.       other words, the MCB pointed to by 2Ch does not specify
  88.       the same owner or has been freed (see below).
  89.  
  90.     Owned Memory
  91.  
  92.       States that this MCB is owned by the program pointed to
  93.       in the OWNER field.
  94.  
  95.     Environment
  96.  
  97.       This is an environment (PATH=, COMSPEC= etc...) owned
  98.       by the program pointed to in the OWNER field.  Each
  99.       program loaded has a copy of the previous environment
  100.       allocated to it.
  101.  
  102.     Free
  103.  
  104.       This MCB is owned by no one.  The word at offset 1 in the
  105.       MCB header contains a 0.
  106.  
  107. ----------------------------------------------------------------------------
  108.  
  109. Hooked Vectors    This is a list of all/any 80x8x INT vectors that
  110.         point to an area inside of this MCB.  Some vectors
  111.         (nornally those in the range of 80-0FFh) are
  112.         un-initialized and TMAP may report that they
  113.         point to a program that may not have assigned the
  114.         interupt.  The /U option was added in version 1.10
  115.         to avoid this hastle.
  116.  
  117. ----------------------------------------------------------------------------
  118.